package com.codi.bus.core.fund.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 模块名
 *
 * @author spy
 * @version 1.0 2018-01-30
 * @since 1.0
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PortfolioTransferRequestDto {

    @NotEmpty
    private String portfolioTradeAcco;

    @NotEmpty
    private String portfolioCode;

    @NotNull
    private Long transferId;

    @NotEmpty
    @Length(min = 6, max = 6, message = "交易密码为6位")
    @Pattern(regexp = "[\\d]{6}", message = "交易密码为6位数字")
    private String password;

    @NotEmpty
    private String sign;


    private Long userId;

}
